<?php

namespace yiike\core\components;
 
/**
 * Description of Noticle
 *
 * @author Sylar
 */
class Notice extends \yii\base\Component {

    public static function set($user_id, $level, $fa_icon, $title, $content) {
        $model             = new \yiike\core\models\Notice();
        $model->attributes = [
            'user_id'    => $user_id,
            'level'      => $level,
            'title_icon' => $fa_icon,
            'title'      => $title,
            'content'    => $content,
        ];
        return $model->save();
    }
}
